﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="IndividualInfonew.ascx.cs"
    Inherits="Control_IndividualInfonew" %>
<%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI.WebControls" TagPrefix="asp" %>
<%@ Register Assembly="ZLTextBox" Namespace="BaseText" TagPrefix="cc1" %>
<%@ Register Src="UserGroup.ascx" TagName="UserGroup" TagPrefix="uc3" %>

<script>
    function ShowRole(chk) {
        var td1 = document.getElementById("ctl00_Content_IndividualInfonew_FVIndividual_tns");
        var td2 = document.getElementById("ctl00_Content_IndividualInfonew_FVIndividual_tus");

        if (chk.checked) {
            td1.style.visibility = "visible";
            td2.style.visibility = "visible";
        }
        else {
            td1.style.visibility = "hidden";
            td2.style.visibility = "hidden";
        }
    }
   
</script>

<fieldset title="人员信息" style="overflow: hidden">
    <legend style="font-size: large; font-weight: bold">人员信息</legend>
    <infolight:webdatasource id="MasterIndividual" runat="server" autoapply="True" webdatasetid="WMasterIndividual"
        datamember="EmployeesIndividual" selectcommand="" selectalias="" cachedataset="True"
        autoapplyforinsert="False" onadding="MasterIndividual_Adding" onupdating="MasterIndividual_Updating">
    </infolight:webdatasource>
    <table style="width: 100%;">
        <tr>
            <td>
                <infolight:webnavigator id="wnSelf" runat="server" bindingobject="FVIndividual" oncommand="wnSelf_Command"
                    showdatastyle="FormViewStyle" width="100%" statusstrip="WebStatusStrip1" ctlheight="25"
                    cssclass="NavigatorBar">
                    <navcontrols>
                <InfoLight:ControlItem ControlName="First" ControlText="掸" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/first.gif" MouseOverImageUrl="../image/uipics/first2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/first3.gif" />
                <InfoLight:ControlItem ControlName="Previous" ControlText="掸" ControlType="Image"
                    ControlVisible="False" ImageUrl="../image/uipics/previous.gif" MouseOverImageUrl="../image/uipics/previous2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/previous3.gif" />
                <InfoLight:ControlItem ControlName="Next" ControlText="掸" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/next.gif" MouseOverImageUrl="../image/uipics/next2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/next3.gif" />
                <InfoLight:ControlItem ControlName="Last" ControlText="ソ掸" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/last.gif" MouseOverImageUrl="../image/uipics/last2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/next3.gif" />
                    
                    
                    
<InfoLight:ControlItem ControlName="Add" ControlText="add" ControlType="Image" ControlVisible="True"
                    DisenableImageUrl="../Image/UIPics/Add3_C.gif" ImageUrl="../Image/UIPics/Add_C.gif"
                    MouseOverImageUrl="../Image/UIPics/Add2_C.gif" Size="48">
                </InfoLight:ControlItem>
                 <InfoLight:ControlItem ControlName="Update" ControlText="update" ControlType="Image"
                    ControlVisible="True" DisenableImageUrl="../Image/UIPics/Edit3_C.gif" ImageUrl="../Image/UIPics/Edit_C.gif"
                    MouseOverImageUrl="../Image/UIPics/Edit2_C.gif" Size="48">
                </InfoLight:ControlItem>
                
              
      
                    
               
<InfoLight:ControlItem ControlName="Cancel" ControlType="Image" ControlVisible="True"
                    DisenableImageUrl="../Image/UIPics/Abort3_C.gif" ImageUrl="../Image/UIPics/Abort_C.gif"
                    MouseOverImageUrl="../Image/UIPics/Abort2_C.gif" Size="48">
                </InfoLight:ControlItem>
<InfoLight:ControlItem ControlName="Apply" ControlType="Image" ControlVisible="True"
                    DisenableImageUrl="../Image/UIPics/Apply3_C.gif" ImageUrl="../Image/UIPics/Apply_C.gif"
                    MouseOverImageUrl="../Image/UIPics/Apply2_C.gif" Size="48">
                </InfoLight:ControlItem>
                
                
                
             
                <InfoLight:ControlItem ControlName="Abort" ControlText="斌" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/abort.gif" MouseOverImageUrl="../image/uipics/abort2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/abort3.gif" />
                <InfoLight:ControlItem ControlName="Query" ControlText="琩高" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/query.gif" MouseOverImageUrl="../image/uipics/query2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/query3.gif" />
                <InfoLight:ControlItem ControlName="Print" ControlText="ゴ" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/print.gif" MouseOverImageUrl="../image/uipics/print2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/print3.gif" />
                <InfoLight:ControlItem ControlName="Export" ControlType="Image" ControlVisible="False"
                    DisenableImageUrl="../Image/UIPics/Export3.gif" ImageUrl="../Image/UIPics/Export.gif"
                    MouseOverImageUrl="../Image/UIPics/Export2.gif" Size="25" />
            </navcontrols>
                    <navstates>
                <InfoLight:WebNavigatorStateItem StateText="Initial" />
                <InfoLight:WebNavigatorStateItem StateText="Browsed" />
                <InfoLight:WebNavigatorStateItem StateText="Inserting" />
                <InfoLight:WebNavigatorStateItem StateText="Editing" />
                <InfoLight:WebNavigatorStateItem StateText="Applying" />
                <InfoLight:WebNavigatorStateItem StateText="Changing" />
                <InfoLight:WebNavigatorStateItem StateText="Querying" />
                <InfoLight:WebNavigatorStateItem StateText="Printing" />
            </navstates>
                </infolight:webnavigator>
            </td>
        </tr>
    </table>
    <infolight:webformview id="FVIndividual" runat="server" datasourceid="MasterIndividual"
        width="100%" cellpadding="4" ondatabound="FVIndividual_DataBound">
        <edititemtemplate>
     <table class="tbE" cellpadding="5">
         <tr>
             <td class="label1">
                员工编号：
             </td>
             <td class="readonly">
                 <asp:TextBox ID="EmployeeID" runat="server" ReadOnly="true" Text='<%# Bind("EmployeeID") %>'></asp:TextBox>
             </td>
             <td class="label2">
                员工姓名：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="EmpName" runat="server" Text='<%# Bind("EmpName") %>' 
                     MaxLength="8" ></asp:TextBox>
             </td>
         </tr>
         <tr>
             <td class="label1">
                性别：
             </td>
             <td class="textbox">
                <InfoLight:WebDropDownList runat="server" ID="Sex" AutoInsertEmptyData="False" DriverObject="" 
                     Filter="" FilterObject="" onlyshowselecttext="False" 
                     SelectedValue='<%# Bind("Sex") %>' DataSourceID="wdsSex" 
                     DataTextField="ValueName" DataValueField="ValueId">
                 </InfoLight:WebDropDownList>
                 
             </td>
             <td class="label2">
                 出生年月(<span style="color:Red">*</span>)：
             </td>
             <td class="textbox">
             
             <asp:TextBox ID="TextBox16" runat="server" 
                     onfocus="WdatePicker({dateFmt:'yyyy-M-d'})" 
                     Text='<%# Bind("Birthday", "{0:d}") %>' CssClass="Wdate"/></asp:TextBox>
             

                 
             </td>
         </tr>
         <tr>
             <td class="label1">
                国籍：
             </td>
             <td class="textbox">                 
                 <InfoLight:WebDropDownList runat="server" ID="Country" AutoInsertEmptyData="False" DriverObject="" 
                     Filter="" FilterObject="" onlyshowselecttext="False" 
                     SelectedValue='<%# Bind("Country") %>' DataSourceID="wdsCountry" 
                     DataTextField="ValueName" DataValueField="ValueId">
                 </InfoLight:WebDropDownList>
             </td>
                   
         </tr>
          <tr>
             <td class="label1">
                护照号：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="Passport" runat="server" Text='<%# Bind("Passport") %>'></asp:TextBox>
             </td>
 
             
             <td class="label2">
                身份证号：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="IDCard" runat="server" Text='<%# Bind("IDCard") %>' ></asp:TextBox>
             </td>
         </tr>
         <tr>
            <td class="label1">
             身份证地址：
             </td>
             <td colspan="3" class="textbox">
             <asp:TextBox ID="IDCardAddress" runat="server" Text='<%# Bind("IDCardAddress") %>' ></asp:TextBox>
             </td>
         </tr>
           <tr>

             <td class="label1">
                户籍地址：
             </td>
             <td colspan="3" class="textbox">
                 <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Regperres") %>' ></asp:TextBox>
             </td>
         </tr>
         
         <tr>
             <td class="label1">
                护照有效期：
             </td>
             <td class="textbox">
              <asp:TextBox ID="TextBox17" runat="server" 
                     onfocus="WdatePicker({dateFmt:'yyyy-M-d'})" 
                     Text='<%# Bind("Passdeadline", "{0:d}") %>' CssClass="Wdate"/></asp:TextBox>
                          </td>
             <td class="label2">
                外籍居留证有效期：
             </td>
             <td class="textbox">
             <asp:TextBox ID="TextBox19" runat="server" 
                     onfocus="WdatePicker({dateFmt:'yyyy-M-d'})" 
                     Text='<%# Bind("Residedeadline", "{0:d}") %>' CssClass="Wdate"/></asp:TextBox>

                 
             </td>
         </tr>
         
          <tr>
             <td class="label1">
                外籍就业证有效期：
             </td>
             <td class="textbox">
             
             <asp:TextBox ID="TextBox20" runat="server" 
                     onfocus="WdatePicker({dateFmt:'yyyy-M-d'})" 
                     Text='<%# Bind("Workdeadline", "{0:d}") %>' CssClass="Wdate"/></asp:TextBox>
             </td>
           
         </tr>
         
           <tr>
             <td class="label1">
                学历：
             </td>
             <td class="textbox">
                 <InfoLight:WebDropDownList ID="Country0" runat="server" 
                     AutoInsertEmptyData="False" DataSourceID="wdsEdu" DataTextField="ValueName" 
                     DataValueField="ValueId" DriverObject="" Filter="" FilterObject="" 
                     onlyshowselecttext="False" SelectedValue='<%# Bind("Education") %>'>
                 </InfoLight:WebDropDownList>
             </td>
             <td class="label2">
                专业：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="Major" runat="server" Text='<%# Bind("Major") %>' ></asp:TextBox>
             </td>
         </tr>
         
           <tr>
             <td class="label1">
                毕业时间：
             </td>
             <td class="textbox">
             
                          <asp:TextBox ID="TextBox21" runat="server" 
                              onfocus="WdatePicker({dateFmt:'yyyy-M-d'})" 
                              Text='<%# Bind("Graduate", "{0:d}") %>' CssClass="Wdate"/></asp:TextBox>


               
             </td>
             <td class="label2">
                毕业院校：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="School" runat="server" Text='<%# Bind("School") %>' ></asp:TextBox>
             </td>
         </tr>
         
          <tr>

             <td class="label1">
                个人信息备注：
             </td>
             <td colspan="3" class="textbox">
                 <asp:TextBox ID="PerRemark" runat="server" Text='<%# Bind("PerRemark") %>' TextMode="MultiLine"></asp:TextBox>
             </td>
         </tr>
         <tr>
             <td class="label1">
                允许登陆：
             </td>
             <td >
                 <asp:CheckBox ID="CanLogin" runat="server" Checked='<%# Bind("CanLogin") %>'></asp:CheckBox>
             </td>
         
              <td class="label2" id="tns" runat="server">
                人员类别：
             </td>
             <td class="textbox" id="tus" runat="server">
                 <uc3:UserGroup ID="UserGroup" runat="server" />
             </td>
         </tr>
         <td class="label1">
                考勤类型：
             </td>
             <td class="textbox">
                 <InfoLight:WebDropDownList ID="WorkOnType" runat="server" AutoInsertEmptyData="False" 
                     DataSourceID="wdsWorkOnType" DataTextField="GroupName" DataValueField="TMid" 
                     DriverObject="" Filter="" FilterObject="" onlyshowselecttext="False" 
                     SelectedValue='<%# Bind("TMid") %>'>
                 </InfoLight:WebDropDownList>
             </td>
         </tr>
     </table>
     </edititemtemplate>
        <itemtemplate>
    <table class="tbR" cellpadding="5">
         <tr>
             <td class="label1">
                员工编号：
             </td>
             <td class="readonly">
                 <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("EmployeeID") %>' ReadOnly="true"></asp:TextBox>
             </td>
             <td class="label2">
                员工姓名：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("EmpName") %>' 
                     ReadOnly="True"></asp:TextBox>
             </td>
         </tr>
         <tr>
             <td class="label1">
                性别：
             </td>
             <td class="textbox">
                <InfoLight:WebDropDownList runat="server" ID="Sex" AutoInsertEmptyData="False" DriverObject="" 
                     Filter="" FilterObject="" onlyshowselecttext="True" 
                     SelectedValue='<%# Bind("Sex") %>' DataSourceID="wdsSex" 
                     DataTextField="ValueName" DataValueField="ValueId">
                 </InfoLight:WebDropDownList>
                 
             </td>
             <td class="label2">
                出生年月：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="TextBox4" runat="server" 
                     Text='<%# Bind("Birthday","{0:d}") %>' ReadOnly="True" ></asp:TextBox>
             </td>
         </tr>
         <tr>
             <td class="label1">
                国籍：
             </td>
             <td class="textbox">                 
                 <InfoLight:WebDropDownList runat="server" ID="Country" 
                     AutoInsertEmptyData="False" DriverObject="" 
                     Filter="" FilterObject="" onlyshowselecttext="True" 
                     SelectedValue='<%# Bind("Country") %>' DataSourceID="wdsCountry" 
                     DataTextField="ValueName" DataValueField="ValueId">
                 </InfoLight:WebDropDownList>
             </td>
                        
         </tr>
          <tr>
             <td class="label1">
                护照号：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("Passport") %>'></asp:TextBox>
             </td>
 
             
             <td class="label2">
                身份证号：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("IDCard") %>' ></asp:TextBox>
             </td>
         </tr>
         <tr>
            <td class="label1">
             身份证地址：
             </td>
             <td colspan="3" class="textbox">
             <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("IDCardAddress") %>' ></asp:TextBox>
             </td>
         </tr>
           <tr>

             <td class="label1">
                户籍地址：
             </td>
             <td colspan="3" class="textbox">
                 <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("Regperres") %>' ></asp:TextBox>
             </td>
         </tr>
         
         <tr>
             <td class="label1">
                护照有效期：
             </td>
             <td class="textbox">
             
             <asp:TextBox ID="TextBox9" runat="server" Text='<%# Bind("Passdeadline", "{0:d}") %>'/></asp:TextBox>
             
             </td>
             <td class="label2">
                外籍居留证有效期：
             </td>
             <td class="textbox">
             
             <asp:TextBox ID="TextBox14" runat="server" Text='<%# Bind("Residedeadline", "{0:d}") %>'/></asp:TextBox>
             
                 
             </td>
         </tr>
         
          <tr>
             <td class="label1">
                外籍就业证有效期：
             </td>
             <td class="textbox">
             <asp:TextBox ID="TextBox15" runat="server" Text='<%# Bind("Workdeadline", "{0:d}") %>'/></asp:TextBox>
                          </td>
         </tr>
         
           <tr>
             <td class="label1">
                学历：
             </td>
             <td class="textbox">
                 <InfoLight:WebDropDownList ID="Edu" runat="server" AutoInsertEmptyData="False" 
                     DataSourceID="wdsEdu" DataTextField="ValueName" DataValueField="ValueId" 
                     DriverObject="" Filter="" FilterObject="" onlyshowselecttext="True" 
                     SelectedValue='<%# Bind("Education") %>'>
                 </InfoLight:WebDropDownList>
             </td>
             <td class="label2">
                专业：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="TextBox10" runat="server" Text='<%# Bind("Major") %>' ></asp:TextBox>
             </td>
         </tr>
         
           <tr>
             <td class="label1">
                毕业时间：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="TextBox11" runat="server" Text='<%# Bind("Graduate", "{0:d}") %>' ></asp:TextBox>
             </td>
             <td class="label2">
                毕业院校：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="TextBox12" runat="server" Text='<%# Bind("School") %>' ></asp:TextBox>
             </td>
         </tr>
         
          <tr>

             <td class="label1">
                个人信息备注：
             </td>
             <td colspan="3" class="textbox">
                 <asp:TextBox ID="TextBox13" runat="server" Text='<%# Bind("PerRemark") %>' TextMode="MultiLine"></asp:TextBox>
             </td>
         </tr>
         
         <tr>
             <td class="label1">
                允许登陆：
             </td>
             <td >
                 <asp:CheckBox ID="CanLogin" runat="server" Checked='<%# Bind("CanLogin") %>' 
                     Enabled="False"></asp:CheckBox>
             </td>
          
             <td class="label2" id="tns" runat="server" style="visibility:hidden">
                人员类别：
             </td>
             <td class="textbox" id="tus" runat="server" style="visibility:hidden">
                 <uc3:UserGroup ID="UserGroup" runat="server" />
             </td>
         </tr>
         <tr>
         <td class="label1">
                考勤类型：
             </td>
             <td class="textbox">
                 <InfoLight:WebDropDownList ID="WorkOnType" runat="server" AutoInsertEmptyData="False" 
                     DataSourceID="wdsWorkOnType" DataTextField="GroupName" DataValueField="TMid" 
                     DriverObject="" Filter="" FilterObject="" onlyshowselecttext="True" 
                     SelectedValue='<%# Bind("TMid") %>'>
                 </InfoLight:WebDropDownList>
             </td>
         </tr>
         </tr>
     </table>
     </itemtemplate>
        <insertitemtemplate>
        <table class="tbI" cellpadding="5">
         <tr>
             <td class="label1">
                员工编号：
             </td>
             <td class="readonly">
                 <asp:TextBox ID="EmployeeID" runat="server" ReadOnly="true" Text='<%# Bind("EmployeeID") %>'></asp:TextBox>
             </td>
             <td class="label2">
                 员工姓名(<span style="color:Red">*</span>)：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="EmpName" runat="server" Text='<%# Bind("EmpName") %>' 
                     MaxLength="8" ></asp:TextBox>
             </td>
         </tr>
         <tr>
             <td class="label1">
                性别：
             </td>
             <td class="textbox">
                <InfoLight:WebDropDownList runat="server" ID="Sex" AutoInsertEmptyData="False" DriverObject="" 
                     Filter="" FilterObject="" onlyshowselecttext="False" 
                     SelectedValue='<%# Bind("Sex") %>' DataSourceID="wdsSex" 
                     DataTextField="ValueName" DataValueField="ValueId">
                 </InfoLight:WebDropDownList>
                 
             </td>
             <td class="label2">
                 出生年月(<span style="color:Red">*</span>)：
             </td>
             <td class="textbox">
             
              <asp:TextBox ID="Birthday" runat="server" 
                     onfocus="WdatePicker({dateFmt:'yyyy-M-d'})" 
                     Text='<%# Bind("Birthday", "{0:d}") %>' CssClass="Wdate"/></asp:TextBox>
         
                 
             </td>
         </tr>
         <tr>
             <td class="label1">
                国籍：
             </td>
             <td class="textbox">                 
                 <InfoLight:WebDropDownList runat="server" ID="Country" AutoInsertEmptyData="False" DriverObject="" 
                     Filter="" FilterObject="" onlyshowselecttext="False" 
                     SelectedValue='<%# Bind("Country") %>' DataSourceID="wdsCountry" 
                     DataTextField="ValueName" DataValueField="ValueId">
                 </InfoLight:WebDropDownList>
             </td>
                   
         </tr>
          <tr>
             <td class="label1">
                护照号：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="Passport" runat="server" Text='<%# Bind("Passport") %>'></asp:TextBox>
             </td>
 
             
             <td class="label2">
                身份证号：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="IDCard" runat="server" Text='<%# Bind("IDCard") %>' ></asp:TextBox>
             </td>
         </tr>
         <tr>
            <td class="label1">
             身份证地址：
             </td>
             <td colspan="3" class="textbox">
             <asp:TextBox ID="TextBox18" runat="server" Text='<%# Bind("IDCardAddress") %>' ></asp:TextBox>
             </td>
         </tr>
           <tr>

             <td class="label1">
                户籍地址：
             </td>
             <td colspan="3" class="textbox">
                 <asp:TextBox ID="Regperres" runat="server" Text='<%# Bind("Regperres") %>' ></asp:TextBox>
             </td>
         </tr>
         
         <tr>
             <td class="label1">
                护照有效期：
             </td>
             <td class="textbox">
              <asp:TextBox ID="Passdeadline" runat="server" 
                     onfocus="WdatePicker({dateFmt:'yyyy-M-d'})" 
                     Text='<%# Bind("Passdeadline", "{0:d}") %>' CssClass="Wdate"/></asp:TextBox>
              
                           </td>
             <td class="label2">
                外籍居留证有效期：
             </td>
             <td class="textbox">
             
                           <asp:TextBox ID="Residedeadline" runat="server" 
                               onfocus="WdatePicker({dateFmt:'yyyy-M-d'})" 
                               Text='<%# Bind("Residedeadline", "{0:d}") %>' CssClass="Wdate"/></asp:TextBox>

                 
             </td>
         </tr>
         
          <tr>
             <td class="label1">
                外籍就业证有效期：
             </td>
             <td class="textbox">
             
             <asp:TextBox ID="Workdeadline" runat="server" 
                     onfocus="WdatePicker({dateFmt:'yyyy-M-d'})" 
                     Text='<%# Bind("Workdeadline", "{0:d}") %>' CssClass="Wdate"/></asp:TextBox>
             </td>
           
         </tr>
         
           <tr>
             <td class="label1">
                学历：
             </td>
             <td class="textbox">
                 <InfoLight:WebDropDownList ID="Education" runat="server" AutoInsertEmptyData="False" 
                     DataSourceID="wdsEdu" DataTextField="ValueName" DataValueField="ValueId" 
                     DriverObject="" Filter="" FilterObject="" onlyshowselecttext="False" 
                     SelectedValue='<%# Bind("Education") %>'>
                 </InfoLight:WebDropDownList>
             </td>
             <td class="label2">
                专业：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="Major" runat="server" Text='<%# Bind("Major") %>' ></asp:TextBox>
             </td>
         </tr>
         
           <tr>
             <td class="label1">
                毕业时间：
             </td>
             <td class="textbox">
             
             <asp:TextBox ID="Graduate" runat="server" 
                     onfocus="WdatePicker({dateFmt:'yyyy-M-d'})" 
                     Text='<%# Bind("Graduate", "{0:d}") %>' CssClass="Wdate"/></asp:TextBox>
               
             </td>
             <td class="label2">
                毕业院校：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="School" runat="server" Text='<%# Bind("School") %>' ></asp:TextBox>
             </td>
         </tr>
         
          <tr>

             <td class="label1">
                个人信息备注：
             </td>
             <td colspan="3" class="textbox">
                 <asp:TextBox ID="PerRemark" runat="server" Text='<%# Bind("PerRemark") %>' TextMode="MultiLine"></asp:TextBox>
             </td>
         </tr>
         <tr>
             <td class="label1">
                允许登陆：
             </td>
             <td >
                 <asp:CheckBox ID="CanLogin" runat="server" Checked='<%# Bind("CanLogin") %>'></asp:CheckBox>
             </td>
          
             <td class="label2" id="tns" runat="server" style="visibility:hidden">
                人员类别：
             </td>
             <td class="textbox" id="tus" runat="server" style="visibility:hidden">
                 <uc3:UserGroup ID="UserGroup" runat="server" />
             </td>
         </tr>
         <tr>
          <td class="label2">
                考勤类型(<span style="color:Red">*</span>)：
             </td>
             <td class="textbox">
                 <InfoLight:WebDropDownList ID="WorkOnType" runat="server" AutoInsertEmptyData="False" 
                     DataSourceID="wdsWorkOnType" DataTextField="GroupName" DataValueField="TMid" 
                     DriverObject="" Filter="" FilterObject="" onlyshowselecttext="False" 
                     SelectedValue='<%# Bind("TMid") %>'>
                 </InfoLight:WebDropDownList>
             </td>
         </tr>
     </table>
    </insertitemtemplate>
        <fields>
                <InfoLight:FormViewField ControlID="EmployeeID" FieldName="EmployeeID" />
                <InfoLight:FormViewField ControlID="EmpName" FieldName="EmpName" />
                <InfoLight:FormViewField ControlID="Sex" FieldName="Sex" />
                <InfoLight:FormViewField ControlID="Birthday" FieldName="Birthday" />
                <InfoLight:FormViewField ControlID="Country" FieldName="Country" />
                <InfoLight:FormViewField ControlID="IDCard" FieldName="IDCard" />
                <InfoLight:FormViewField ControlID="Passport" FieldName="Passport" />
                <InfoLight:FormViewField ControlID="IDCardAddress" FieldName="IDCardAddress" />  
                <InfoLight:FormViewField ControlID="Regperres" FieldName="Regperres" />
                <InfoLight:FormViewField ControlID="Passdeadline" FieldName="Passdeadline" />
                <InfoLight:FormViewField ControlID="Residedeadline" FieldName="Residedeadline" />
                <InfoLight:FormViewField ControlID="Workdeadline" FieldName="Workdeadline" />
                <InfoLight:FormViewField ControlID="Education" FieldName="Education" />
                <InfoLight:FormViewField ControlID="Major" FieldName="Major" />
                <InfoLight:FormViewField ControlID="Graduate" FieldName="Graduate" />
                <InfoLight:FormViewField ControlID="School" FieldName="School" />
                <InfoLight:FormViewField ControlID="PerRemark" FieldName="PerRemark" />
                <InfoLight:FormViewField ControlID="CanLogin" FieldName="CanLogin" />
            </fields>
    </infolight:webformview>
    <div id="RoleTableParent">
    </div>
</fieldset>
<asp:HiddenField ID="hidEmail" runat="server" />
<asp:HiddenField ID="hidGClass2" runat="server" />
<asp:HiddenField ID="hidGClass2Name" runat="server" />
<infolight:webdatasource id="wdsSex" runat="server" selectalias="Usasdb" selectcommand="select Employees_LinkValue.* from Employees_LinkValue
where TypeId='Sex' And ValueStatus=1" cachedataset="True">
</infolight:webdatasource>
<infolight:webdatasource id="wdsCountry" runat="server" selectalias="Usasdb" selectcommand="select Employees_LinkValue.* from Employees_LinkValue
where TypeId='Country' And ValueStatus=1" cachedataset="True">
</infolight:webdatasource>
<infolight:webdatasource id="wdsEdu" runat="server" selectalias="Usasdb" selectcommand="select Employees_LinkValue.* from Employees_LinkValue
where TypeId='Education' And ValueStatus=1" cachedataset="True">
</infolight:webdatasource>
<infolight:webdefault id="wdMaster" runat="server" datasourceid="MasterIndividual"
    defaultactive="True">
    <fields>
        <InfoLight:DefaultFieldItem DefaultValue="0" FieldName="EmployeeID"></InfoLight:DefaultFieldItem>
    </fields>
</infolight:webdefault>
<infolight:webvalidate id="wvIndividual" runat="server" altrowcss="" datamember=""
    datasourceid="MasterIndividual" forecolor="Red" rowcss="" validatestyle="ShowDialog">
    <fields>
        <InfoLight:ValidateFieldItem CheckNull="True" FieldName="EmpName"></InfoLight:ValidateFieldItem>
        <InfoLight:ValidateFieldItem CheckNull="True" FieldName="Birthday" 
            ValidateLabelLink=""></InfoLight:ValidateFieldItem>
    </fields>
</infolight:webvalidate>
<infolight:webdatasource id="wdsWorkOnType" runat="server" selectalias="Usasdb" selectcommand="select GroupName,TMid from WorkTime_WorkOnTypeMaster"
    cachedataset="True">
</infolight:webdatasource>
<asp:HiddenField ID="HidAction" runat="server" />
